package com.hrprojectback.dto;

import java.util.ArrayList;
import java.util.List;

public class DepertmentPCode {
    private String code;//部门编码
    private String name;//部门名称

    private String pcode;//上级部门编码

    private List<DepertmentPCode> childDept = new ArrayList();//上级部门编码信息树

    public DepertmentPCode() {
    }

    public DepertmentPCode(String code, String name, List<DepertmentPCode> childDept ,String pcode) {
        this.code = code;
        this.name = name;
        this.childDept = childDept;
        this.pcode = pcode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<DepertmentPCode> getChildDept() {
        return childDept;
    }

    public void setChildDept(List<DepertmentPCode> childDept) {
        this.childDept = childDept;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    @Override
    public String toString() {
        return "DepertmentPCode{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", pcode='" + pcode + '\'' +
                ", childDept=" + childDept +
                '}';
    }
}
